package com.ktjy.ktmall.service.impl;

import com.ktjy.ktmall.dao.MenuDao;
import com.ktjy.ktmall.dao.impl.MenuDaoImp;
import com.ktjy.ktmall.entity.Menu;
import com.ktjy.ktmall.service.MenuService;

import java.util.Collections;
import java.util.List;

public class MenuServiceImp implements MenuService {
    MenuDao menuDao = new MenuDaoImp();
    @Override
    public List<Menu> getMenuList(Integer currPageNo, Integer pageSize) {
       return menuDao.getMenuListPage((currPageNo-1)*pageSize,pageSize);
    }
}
